package org.gdtc.storefront.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.gdtc.storefront.entity.Notice;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface NoticeMapper {

    int deleteByPrimaryKey(@RequestParam("id") Integer id);

    int insert(@RequestBody Notice notice);

    Notice selectByPrimaryKey(@Param("id") Integer id);

    List<Notice> selectAll();

    int updateByPrimaryKey(@RequestBody Notice record);


}